<?php
namespace Home\Model;
use Think\Model;
class GoodsModel extends Model {

	protected $trueTableName = 'my_goods'; 
	private $field = '*';

	public function getone($goods_id)
	{
		$field 	= $this->field;
		
		$where['id'] = $goods_id;
		return $this->where($where)->field($field)->find();
	}

}